#include <wx/wx.h>

class TextFrame: public wxFrame{
public:
	TextFrame(const wxChar* title, int xpos, int ypos, int width, int height);
	~TextFrame();

	void OnMenuFileOpen(wxCommandEvent &event);
	void OnMenuFileSave(wxCommandEvent &event);
	void OnMenuFileQuit(wxCommandEvent &event);
	void OnMenuInfoAbout(wxCommandEvent &event);

protected:
	DECLARE_EVENT_TABLE()

private:
	wxTextCtrl	*_pTextCtrl;
	wxMenuBar	*_pMenuBar;
	wxMenu		*_pFileMenu;
	wxMenu		*_pInfoMenu;

	enum{
		MENU_FILE_OPEN,
		MENU_FILE_SAVE,
		MENU_FILE_QUIT,
		MENU_INFO_ABOUT,
	};
};

